package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysModuleAccessLog implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long moduleId;

    /**
     * Attribute moduleId Be Seted Falg
     */
    private boolean moduleIdSetted = false;

    /**
    * Attribute moduleId is Null Falg
    */
    private boolean moduleIdNull = false;
    private long userId;

    /**
     * Attribute userId Be Seted Falg
     */
    private boolean userIdSetted = false;

    /**
    * Attribute userId is Null Falg
    */
    private boolean userIdNull = false;
    private String sessionId;

    /**
     * Attribute sessionId Be Seted Falg
     */
    private boolean sessionIdSetted = false;

    /**
    * Attribute sessionId is Null Falg
    */
    private boolean sessionIdNull = false;
    private java.util.Date accessTime;

    /**
     * Attribute accessTime Be Seted Falg
     */
    private boolean accessTimeSetted = false;

    /**
    * Attribute accessTime is Null Falg
    */
    private boolean accessTimeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String moduleName;

    /**
     * Attribute moduleName Be Seted Falg
     */
    private boolean moduleNameSetted = false;

    /**
    * Attribute moduleName is Null Falg
    */
    private boolean moduleNameNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;
    private String userName;

    /**
     * Attribute userName Be Seted Falg
     */
    private boolean userNameSetted = false;

    /**
    * Attribute userName is Null Falg
    */
    private boolean userNameNull = false;
    private java.util.Date loginTime;

    /**
     * Attribute loginTime Be Seted Falg
     */
    private boolean loginTimeSetted = false;

    /**
    * Attribute loginTime is Null Falg
    */
    private boolean loginTimeNull = false;

    public SysModuleAccessLog() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get moduleId
         *
         * @return long
         */
    final public long getModuleId() {
        return moduleId;
    }

    /**
     * Set moduleId
     *
     * @param long
     */
    final public void setModuleId(long moduleId) {
        this.moduleId = moduleId;

        this.moduleIdSetted = true;

        this.setModuleIdNull(false);
    }

    /**
     * Get moduleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleIdSetted() {
        return this.moduleIdSetted;
    }

    /**
     * Set moduleId Null
     *
     */
    final public void setModuleIdNull() {
        this.moduleIdNull = true;
    }

    final public void setModuleIdNull(boolean aNullFlag) {
        this.moduleIdNull = aNullFlag;
    }

    final public boolean isModuleIdNull() {
        return this.moduleIdNull;
    }

    /**
         * Get userId
         *
         * @return long
         */
    final public long getUserId() {
        return userId;
    }

    /**
     * Set userId
     *
     * @param long
     */
    final public void setUserId(long userId) {
        this.userId = userId;

        this.userIdSetted = true;

        this.setUserIdNull(false);
    }

    /**
     * Get userId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserIdSetted() {
        return this.userIdSetted;
    }

    /**
     * Set userId Null
     *
     */
    final public void setUserIdNull() {
        this.userIdNull = true;
    }

    final public void setUserIdNull(boolean aNullFlag) {
        this.userIdNull = aNullFlag;
    }

    final public boolean isUserIdNull() {
        return this.userIdNull;
    }

    /**
         * Get sessionId
         *
         * @return String
         */
    final public String getSessionId() {
        if (isSessionIdNull()) {
            return null;
        } else {
            return StringUtils.trim(sessionId);
        }
    }

    /**
     * Set sessionId
     *
     * @param String
     */
    final public void setSessionId(String sessionId) {
        this.sessionId = StringUtils.trim(sessionId);

        this.sessionIdSetted = true;

        this.setSessionIdNull(this.sessionId == null);
    }

    /**
     * Get sessionId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSessionIdSetted() {
        return this.sessionIdSetted;
    }

    /**
     * Set sessionId Null
     *
     */
    final public void setSessionIdNull() {
        this.sessionIdNull = true;
    }

    final public void setSessionIdNull(boolean aNullFlag) {
        this.sessionIdNull = aNullFlag;
    }

    final public boolean isSessionIdNull() {
        return this.sessionIdNull;
    }

    /**
         * Get accessTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getAccessTime() {
        return accessTime;
    }

    /**
     * Set accessTime
     *
     * @param java.util.Date
     */
    final public void setAccessTime(java.util.Date accessTime) {
        this.accessTime = accessTime;

        this.accessTimeSetted = true;

        this.setAccessTimeNull(this.accessTime == null);
    }

    /**
     * Get accessTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isAccessTimeSetted() {
        return this.accessTimeSetted;
    }

    /**
     * Set accessTime Null
     *
     */
    final public void setAccessTimeNull() {
        this.accessTimeNull = true;
    }

    final public void setAccessTimeNull(boolean aNullFlag) {
        this.accessTimeNull = aNullFlag;
    }

    final public boolean isAccessTimeNull() {
        return this.accessTimeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get moduleName
         *
         * @return String
         */
    final public String getModuleName() {
        if (isModuleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(moduleName);
        }
    }

    /**
     * Set moduleName
     *
     * @param String
     */
    final public void setModuleName(String moduleName) {
        this.moduleName = StringUtils.trim(moduleName);

        this.moduleNameSetted = true;

        this.setModuleNameNull(this.moduleName == null);
    }

    /**
     * Get moduleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleNameSetted() {
        return this.moduleNameSetted;
    }

    /**
     * Set moduleName Null
     *
     */
    final public void setModuleNameNull() {
        this.moduleNameNull = true;
    }

    final public void setModuleNameNull(boolean aNullFlag) {
        this.moduleNameNull = aNullFlag;
    }

    final public boolean isModuleNameNull() {
        return this.moduleNameNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    /**
         * Get userName
         *
         * @return String
         */
    final public String getUserName() {
        if (isUserNameNull()) {
            return null;
        } else {
            return StringUtils.trim(userName);
        }
    }

    /**
     * Set userName
     *
     * @param String
     */
    final public void setUserName(String userName) {
        this.userName = StringUtils.trim(userName);

        this.userNameSetted = true;

        this.setUserNameNull(this.userName == null);
    }

    /**
     * Get userName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserNameSetted() {
        return this.userNameSetted;
    }

    /**
     * Set userName Null
     *
     */
    final public void setUserNameNull() {
        this.userNameNull = true;
    }

    final public void setUserNameNull(boolean aNullFlag) {
        this.userNameNull = aNullFlag;
    }

    final public boolean isUserNameNull() {
        return this.userNameNull;
    }

    /**
         * Get loginTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLoginTime() {
        return loginTime;
    }

    /**
     * Set loginTime
     *
     * @param java.util.Date
     */
    final public void setLoginTime(java.util.Date loginTime) {
        this.loginTime = loginTime;

        this.loginTimeSetted = true;

        this.setLoginTimeNull(this.loginTime == null);
    }

    /**
     * Get loginTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLoginTimeSetted() {
        return this.loginTimeSetted;
    }

    /**
     * Set loginTime Null
     *
     */
    final public void setLoginTimeNull() {
        this.loginTimeNull = true;
    }

    final public void setLoginTimeNull(boolean aNullFlag) {
        this.loginTimeNull = aNullFlag;
    }

    final public boolean isLoginTimeNull() {
        return this.loginTimeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysModuleAccessLog) == false) {
            return false;
        }

        SysModuleAccessLog other = (SysModuleAccessLog) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("moduleId=");
        buffer.append(this.moduleId);

        buffer.append("userId=");
        buffer.append(this.userId);

        buffer.append("sessionId=");
        buffer.append(this.sessionId);

        buffer.append("accessTime=");
        buffer.append(this.accessTime);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("moduleName=");
        buffer.append(this.moduleName);

        buffer.append("userName=");
        buffer.append(this.userName);

        buffer.append("loginTime=");
        buffer.append(this.loginTime);

        buffer.append("]");

        return buffer.toString();
    }
}
